home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / lib / mntlib44.zoo / mntlib / strupr.c < prev    next >
C/C++ Source or Header  |  1993-07-06  |  345b  |  21 lines

  1. /* hohmuth 1-Nov-92, derived from strlwr.c */
  2. #include <ctype.h>
  3. #include <string.h>
  4.  
  5. char *strupr(string)
  6. register char *string;
  7. {
  8.     register char *p = string;
  9.  
  10.     if(p)
  11.     {
  12.         while(*string)
  13.         {
  14.             if(islower(*string))
  15.                 *string = toupper(*string);
  16.             ++string;
  17.         }
  18.     }
  19.     return(p);
  20. }
  21.